import request from "./request"
//请求首页数据  get中只写路径就行
export const GetHomeLists = ()=>request.get("/index/index")
export const GetPopupData = ()=>request.get("/search/index")
export const GetSearchListData = (params)=>request.get("/search/helper",{params})
export const GetSubjectData = (params)=>request.get("/topic/list",{params})
export const GetDelSearchHistory = ()=>request.get("/search/clearhistory")
// GetSearchShowListData 获取搜索后商品展示数据
export const GetS_ShowListData = (params)=>request.get("/goods/list",{params})
// 分类页左侧 侧边栏
export const GetFenLeft = ()=>request.get("/catalog/index")
//分类页右侧 商品展示
export const GetFenRight = (params)=>request.get("/catalog/current",{params})
//登录接口
export const GetLoginData = (params)=>request.post("/auth/loginByWeb",params)
//标签 居家  点击进入=> 
export const GetJujia_In = (params)=>request.get("/goods/category",{params})
// 品牌详情
export const brandXiangQing = (params)=>request.get("/brand/detail",{params})
//产品明细
export const GetgoodsDetail = (params)=>request.get("/goods/detail",{params})
// 相关产品
export const GetgoodsRelated = (params)=>request.get("/goods/related",{params})
//添加到购物车
export const addCarData = (params)=>request.post("/cart/add",params)
//获取购物车产品数量 
export const GetGoodsCount = ()=>request.get("/cart/goodscount")
// 获取购物车数据
export const GetCarData = ()=>request.get("/cart/index")
//删除商品
export const GetDeleteGoods = (params)=>request.post("/cart/delete",params)
//商品步进器
export const GetStepUpdate = (params)=>request.post("/cart/update",params)
//点击切换商品选中状态
export const GetGoodsChecked = (params)=>request.post("/cart/checked",params)




